package com.infoland.afanmall.model.youXuan.adapter;

import android.content.Context;
import android.support.v4.app.FragmentActivity;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

public class TabAdapter  extends BaseQuickAdapter<MultiItemEntity, BaseViewHolder> {

    private int layoutPosition = 0;
    private Context context;
    private FragmentActivity activity;

    public TabAdapter(int layoutResId, List data, Context context, FragmentActivity activity) {
        super(layoutResId, data);
        this.context = context;
        this.activity = activity;
    }

    @Override
    protected void convert(BaseViewHolder helper, MultiItemEntity item) {
//        helper.setText(R.id.text, item.getTitle());
//        helper.setImageResource(R.id.icon, item.getImageResource());
        // 加载网络图片
//        Glide.with(mContext).load(item.getUserAvatar()).crossFade().into((ImageView) helper.getView(R.id.iv));
    }
}
